<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsUserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
     public function up()
    {
        if(!Schema::HasTable('goods_user')){
            Schema::create('goods_user', function (Blueprint $table){
                $table->integer('user_id');
                $table->integer('goods_id');
                $table->timestamps();
            });
        }
    }
    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        // Schema::drop('goods_user');
        
    }
}
